﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using Royaumes_Libres.Database;

namespace Royaumes_Libres.ajax
{
    public partial class ajax : System.Web.UI.Page
    {

        [WebMethod]
        public static string UserExist(string Username)
        {
            return cValidate.CheckUsernameExist(Username).ToString();
        }

        [WebMethod]
        public static string GetWork(int FkKingdom)
        {
            return cWorks.GetWorks(FkKingdom).ToString();
        }

        [WebMethod]
        public static string SetWork(int PkKingdom, int Disciple, int Lumberjack, int Miner, int Farmer, int Worker)
        {
            return cWorks.SetWorks(PkKingdom, Disciple, Lumberjack, Miner, Farmer, Worker).ToString();
        }


    }
}